package com.example.eurekaclient.web;

/**
 * @program: eurekaclient
 * @description: t
 * @author: yy
 * @create: 2019-07-01 17:21
 **/
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class ConfigController {
    /**
     * 获取配置
     */
    @Value("${test}")
    private String test;

    @GetMapping("/get")
    public String getTest(){
        return this.test;
    }
    @GetMapping("/gett")
    public String gett(){
        return "ggggggggggggg";
    }

}
